package kr.ac.kaist.savehearts.location;

import android.location.Location;

/**
 * LocationTrackingListener is a listener class which notifies
 * location update of the user periodically. This listener must be
 * registered by calling setListener() provided by
 * kr.ac.kaist.savehearts.location.UserLocationTracker class.
 * @author Seungwook Han (hsw1120@gmail.com)
 */

public interface LocationTrackingListener {
	
	/**
	 * locationUpdated() is called when location of the user
	 * is updated periodically. Update interval time is configured in
	 * kr.ac.kaist.savehearts.Configure class.
	 * @param location 
	 * 		Current location(longitude and latitude) of the user
	 */
	public void locationUpdated(Location location);
}
